-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(settings): disable Discover when appstore is disabled #48090
fix(settings): disable Discover when appstore is disabled #48090
Conversation
/backport to stable30 |
/backport to stable30 |
/backport to stable29 |
apps/settings/src/router/routes.ts
Outdated
import { loadState } from '@nextcloud/initial-state' | ||
import type { RouteConfig } from 'vue-router' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Types 🆙
import { loadState } from '@nextcloud/initial-state' | |
import type { RouteConfig } from 'vue-router' | |
import type { RouteConfig } from 'vue-router' | |
import { loadState } from '@nextcloud/initial-state' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint does not complain ._.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're the eslint
Signed-off-by: Grigorii K. Shartsev <[email protected]>
Signed-off-by: Grigorii K. Shartsev <[email protected]>
2465ed0
to
5ac467b
Compare
Summary
Even when the App Store is disabled, the default page (also listed in the navigation) is Discovery, which doesn't work. And when there is no internet, it results in error: "Avertissement appstoreFetcher Could not get apps from the appstore".
Solution — if the app store is disabled:
P.S. It is still possible to open any category, including supported or non-existed by direct link and see an error. Might make sense to explicitly define the list of available categories and check before route enter/update.
Checklist